﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Entity.Admin
{
    [MetadataType(typeof(InquiryParameterMetadata))]
    public partial class ParameterRule
    {
        class InquiryParameterMetadata
        {
            /// <summary>
            /// 
            /// </summary>
            [HiddenInput(DisplayValue = false)]
            public string ID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Required]
            [Display(Name = "匹配路径", Order = 1)]
            public string RulePath { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Display(Name = "规则权重", Order = 2, Description = "数字越低,匹配优先级越高")]
            public Nullable<int> RuleLevel { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [Display(Name = "备注", Order = 3)]
            public string Memo { get; set; }

            /// <summary>
            /// 
            /// </summary>
            [Display(Name = "启用", Order = 4)]
            public bool Enable { get; set; }

        }

    }
}
